package com.zestinn.smart4j.framework.util;

import org.apache.commons.lang3.StringUtils;

/**
 * 字符串工具类
 * @author zestinn
 * @create 2017-09-22 10:34
 */
public final class StringUtil {

    /**
     * 判断字符串不为空
     * @param s
     * @return
     */
    public static boolean isNotEmpty(String s){
        return !StringUtils.isEmpty(s);
    }

    /**
     * 判断字符串为空
     *
     * @param s
     * @return
     */
    public static boolean isEmpty(String s) {
        return StringUtils.isEmpty(s);
    }

    /**
     * split字符串
     * @param s
     * @param item
     * @return
     */
    public static String[] splitString(String s, String item){
        return StringUtils.split(s, item);
    }

}
